package com.jack.vipmis.vip.action.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 活动Entity
 * 
 * @author JackLiang
 * @version 1.0
 * @date 2014-10-9
 */
@Entity
@Table(name="vip_action")
public class ActionEntity extends BaseEntity<Long> {

	private static final long	serialVersionUID	= 2502174918640495593L;

	@Column(name = "title", length = 100)
	private String				title;

	/**
	 * 类型
	 */
	@Column
	private String				type;

	@Column
	private String				images;

	@Column
	private String				location;

	@Column(name = "action_time")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date				actionDate;
	/**
	 * 被要求人数
	 */
	@Column
	private Long				inviters;

	@Column(name = "description", length = 500)
	private String				description;
	/**
	 * 被赞数量
	 */
	@Column(name = "goods")
	private Long				goods;

	@Column
	private Boolean				isRecommend			= false;

	@Column
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date				createTime			= new Date();

	@Column
	private String				remark;

	// getter setter
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Date getActionDate() {
		return actionDate;
	}

	public void setActionDate(Date actionDate) {
		this.actionDate = actionDate;
	}

	public Long getInviters() {
		return inviters;
	}

	public void setInviters(Long inviters) {
		this.inviters = inviters;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getGoods() {
		return goods;
	}

	public void setGoods(Long goods) {
		this.goods = goods;
	}

	public Boolean getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Boolean isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
